package TagsDB;

import java.io.Serializable;

/***
 * This class include the properties of the tuples in the TagsDatabase-plugin table
 * @author Guy
 *
 */
public class Plugin implements Serializable

{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	//Members
	private String pluginLocation;
	private int isUse;
	private String namePlugin;
	//Methods
	/**
	 * Contractor of Plugin
	 * @param pluginLocation
	 * @param isUse
	 * @param namePlugin
	 */
	public Plugin(String pluginLocation, int isUse,
			String namePlugin) {
		super();
		
		this.pluginLocation = pluginLocation;
		this.isUse = isUse;
		this.namePlugin = namePlugin;
	}
	public Plugin() {
		super();
		// TODO Auto-generated constructor stub
	}
	/**
	 * get Name Plugin
	 * @return String name of plugin
	 */
	public String getNamePlugin() {
		return namePlugin;
	}
	/**
	 * Set name plugin
	 * @param namePlugin
	 */
	public void setNamePlugin(String namePlugin) {
		this.namePlugin = namePlugin;
	}
	/**
	 * get if plugin is in use or not
	 * @return 1- plugin is in use,otherwise 0
	 */
	public int getIsUse() {
		return isUse;
	}
	/**
	 * Set status using  plugin
	 * @param isUse
	 */
	public void setIsUse(int isUse) {
		this.isUse = isUse;
	}
	/**
	 * get the path of the plugin
	 * @return string - path
	 */
	public String getPluginLocation() {
		return pluginLocation;
	}
	/**
	 * set the path of the plugin
	 * @param pluginLocation
	 */
	public void setPluginLocation(String pluginLocation) {
		this.pluginLocation = pluginLocation;
	}
	
}
